<?php 
function loginAccount($admin){
	\Think\Log::write("loginAccount->".dump($admin, false));
	session('authName', $admin['user']);
	session('last_login_date', $admin['last_login_date']);
	session('last_login_ip', $admin['last_login_ip']);
	cookie('user', $admin['user']);
	cookie('password', $admin['password']);
}